import 'package:flutter_app/getx/snackbar/view.dart';
import 'package:flutter_app/util/show.dart';
import 'package:get/get.dart';

import 'state.dart';

class HomeLogic extends GetxController {
  final state = HomeState();

  ///监听搜索输入
  void onSearch(String msg) {showToast('搜索');}

  ///消息
  void onMsg() {
    showToast('查看消息');
    Get.to(snackbarPage());
  }
}
